package com.zzg.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import com.zzg.monit.domain.Server;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;

/**
 * 服务器监控
 * @author zzg
 *
 */
@Api(value = "服务器监控", description = "服务器监控管理")
@Controller
@RequestMapping("/server")
@Slf4j
public class ServerController {
	
	/**服务器监控首页
	 * @throws Exception **/
    @ApiOperation(value = "服务器监控首页", notes = "服务器监控首页")
    @GetMapping("/server")
    public ModelAndView user() throws Exception{
    	Server server = new Server();
        server.copyTo();
    	ModelAndView modelAndView = new ModelAndView();
    	modelAndView.setViewName("admin/server/server");
    	modelAndView.addObject("server", server);
        return modelAndView;
    }
	

}
